package edu.bit.water.dao;

import edu.bit.water.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface WaterSavingDao {
    //查询WATER_SAVING中的相应记录
    List<WaterSaving> select(String label_eva_basis);

    List<MetaManagementIndicator> getManagementIndicatorData(String standardNum);
    //插入初始新数据到MANAGEMENT_INDICATOR
    int insertManagementIndicatorData(ManagementIndicator managementIndicator)throws DuplicateKeyException;

    List<MetaTI> getTechnicalIndicatorData(String standardNum);

    int insertTechnicalIndicatorData(TechnicalIndicator technicalIndicator);
}
